package com.situ.ssm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.situ.ssm.entity.Course;
import com.situ.ssm.vo.CourseSearchCondition;

public interface CourseMapper {

	List<Course> list();

	Integer getTotalCount(CourseSearchCondition condition);

	List<Map<String, Object>> findPageBeanList(@Param("condition")CourseSearchCondition condition,@Param("offset") Integer offset);

	Integer insert(Course course);

	Integer deleteById(Integer id);

	Integer deleteAll(String[] selectIds);

	Course findByName(Integer id);

	Integer update(Course course);

	Integer checkName(String name);

}
